<?php
// Module Definition
$module['name'] = 'External Access API';
$module['description'] = 'Allow external applications to control web-cp';
//$module['depends'] = Array('unix_users');

switch($action) {
	case 'register':
		break;
	case 'unregister':
		break;
	case 'hook':
		register_hook('ext:personal:userinfo', 'ext_personal_userinfo', 1);
		register_hook('ext:personal:userset', 'ext_personal_userset', 1);
		register_hook('ext:domain:newuser', 'ext_domain_newuser', 1);
		register_hook('ext:domain:domaininfo', 'ext_domain_domaininfo', 1);
		register_hook('ext:reseller:newdomain', 'ext_reseller_newdomain', 1);
		register_hook('ext:system:listMethods', 'ext_listmethods', 1);
		register_hook('ext:system:getTime', 'ext_gettime', 1);
		register_hook('ext:system:wait', 'ext_wait', 1);
		break;
}
?>